<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-cn" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="zh-cn" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-cn">
<!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>{if $meta_name}{$meta_name} - {/if}会员中心</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1" name="viewport" />
	<meta content="www.phpkaiyuancms.com" name="author" />
	<link href="{THEME_PATH}admin/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	<link href="{HOME_THEME_PATH}mobile/css/member.css" rel="stylesheet" type="text/css" />
	<!--[if lt IE 9]>
	<script src="{THEME_PATH}admin/global/plugins/respond.min.js"></script>
	<script src="{THEME_PATH}admin/global/plugins/excanvas.min.js"></script>
	<![endif]-->
	<!--下面是关键js库（必须要）-->
	<script type="text/javascript">
		var memberpath = "{MEMBER_PATH}";
        var dr_notice_url = "{dr_member_url('api/notice')}&"+Math.random();
	</script>
	<script src="{THEME_PATH}admin/global/plugins/jquery.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/js.cookie.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="{SITE_PC}config/language/{SITE_LANGUAGE}/lang.js" type="text/javascript"></script>
	<script src="{THEME_PATH}js/layer/layer.js" type="text/javascript"></script>
	<script src="{THEME_PATH}js/cms.js" type="text/javascript"></script>
	<script src="{HOME_THEME_PATH}mobile/scripts/member.js" type="text/javascript"></script>
	<!--下面是特效js插件（可不要）-->
	<link href="{THEME_PATH}admin/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.css" rel="stylesheet" type="text/css" />
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/jquery-minicolors/jquery.minicolors.min.js" type="text/javascript"></script>
	<script src="{THEME_PATH}admin/global/plugins/bootstrap-confirmation/bootstrap-confirmation.min.js" type="text/javascript"></script>
	<link href="{THEME_PATH}admin/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/bootstrap-tagsinput/bootstrap-tagsinput.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/bootstrap-colorpicker/css/colorpicker.css" rel="stylesheet" type="text/css" />
	<link href="{THEME_PATH}admin/global/plugins/jquery-minicolors/jquery.minicolors.css" rel="stylesheet" type="text/css" />
</head>

<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white page-boxed">

<div class="page-header navbar navbar-fixed-top">
	<div class="page-header-inner">

		<div class="page-header-top">
			<?php $tburl = $_SERVER['HTTP_REFERER']; !$tburl && $tburl = MEMBER_URL; ?>
			<a href="{$tburl}" class="menu-toggler2"> <i class="fa fa-angle-left"></i></a>
			<div class="page-title">
				{php echo $meta_name ? $meta_name : '会员中心';}
			</div>
			<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> <i class="fa fa-bars"></i> </a>
		</div>

		<div class="clearfix"></div>
		<div class="top-menu">
			<ul class="nav navbar-nav pull-right">
				<li class="dropdown dropdown-extended dropdown-notification">
					<a href="{SITE_URL}" target="_blank" title="去首页" class="dropdown-toggle" >
						<i class="fa fa-home"></i>
					</a>
					<ul class="dropdown-menu">
					</ul>
				</li>
				{if $member}
				<li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
					<a href="{dr_member_url('notice/go')}" class="dropdown-toggle">
						<i class="fa fa-bell"></i>
						<span class="badge badge-default dr_notece_num"> 0 </span>
					</a>
				</li>
				<li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar">
					<a href="{dr_member_url('pm/index')}" class="dropdown-toggle">
						<i class="fa fa-envelope"></i>
						<span class="badge badge-default"> {if $newpm}新{else}0{/if} </span>
					</a>
				</li>
				<li class="dropdown dropdown-user">
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
						<img class="img-circle" src="{$member.avatar_url}" />
						<span class="username username-hide-on-mobile"> {$member.username} </span>
						<i class="fa fa-angle-down"></i>
					</a>
					<ul class="dropdown-menu dropdown-menu-default">
						<li>
							<a href="{dr_member_url('account/index')}">
								<i class="fa fa-user"></i> 我的资料 </a>
						</li>
						<li>
							<a href="{dr_member_url('account/password')}">
								<i class="fa fa-lock"></i> 修改密码 </a>
						</li>
						<li>
							<a href="{dr_member_url('account/avatar')}">
								<i class="fa fa-photo"></i> 上传头像
							</a>
						</li>
						<li>
							<a href="{dr_member_url('notice/go')}">
								<i class="fa fa-bell"></i> 提醒消息
								<span class="badge dr_notece_num"> 0 </span>
							</a>
						</li>
						<li class="divider"> </li>
						<li><a href="javascript:;" onclick="dr_loginout('退出成功')">
								<i class="fa fa-key"></i> 我要退出 </a>
						</li>
					</ul>
				</li>
				{/if}
			</ul>
		</div>
	</div>
</div>

<div class="clearfix"> </div>

<div class="page-container">

	{if !$is_msg_page}
	<div class="page-sidebar-wrapper">
		<div class="page-sidebar navbar-collapse collapse">
			<ul class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
				<li class="sidebar-toggler-wrapper hide">
					<div class="sidebar-toggler"> </div>
				</li>
				{loop $menu $top}
				<li class="heading">
					<h3 class="uppercase">{$top.name}</h3>
				</li>
				{loop $top.left $left}
				<li class="nav-item {if $left.id==$menu_pid} active{/if}">
					<a href="javascript:;" class="nav-link nav-toggle">
						<i class="{$left.icon}"></i>
						<span class="title">{$left.name}</span>
						<span class="arrow"></span>
						{if $left.id==$menu_pid}<span class="selected"></span>{/if}
					</a>
					<ul class="sub-menu">
						{loop $left.link $t}
						<li class="nav-item  {if $t.id==$menu_id} active open{/if}">
							<a href="{if $t.url}{$t.url}{else}{dr_member_url($t.uri)}{/if}" {if $t.target}target="_blank"{/if} class="nav-link ">
							<i class="{$t.icon}"></i>
							<span class="title">{$t.name}</span>
							{if isset($notices[$t.uri])}<span class="badge badge-success">{intval($notices[$t.uri])}</span>{/if}
							</a>
						</li>
						{/loop}
					</ul>
				</li>
				{/loop}
				{/loop}
			</ul>
		</div>
	</div>
	{/if}
	<div class="page-content-wrapper">
		<div class="page-content">
			{if !$is_msg_page && ($menu[$menu_tid]['left'][$menu_pid] || $menu[$menu_tid])}
			<div class="page-bar">
				<ul class="page-breadcrumb">
					{if $menu[$menu_tid]}
					<li>
						<span>{$menu[$menu_tid]['name']}</span>
						<i class="fa fa-angle-right"></i>
					</li>
					{/if}
					{if $menu[$menu_tid]['left'][$menu_pid]}
					<li>
						<span>{$menu[$menu_tid]['left'][$menu_pid]['name']}</span>
						<i class="fa fa fa-angle-right"></i>
					</li>
					{/if}
					<li>
						<span>{$meta_name}</span>
					</li>
				</ul>
				{if $menu[$menu_tid]['left'][$menu_pid]}
				<div class="page-toolbar">
					<div class="btn-group pull-right">
						<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown"><i class="{$menu[$menu_tid]['left'][$menu_pid]['icon']}"></i> {$menu[$menu_tid]['left'][$menu_pid]['name']}
							<i class="fa fa-angle-down"></i>
						</button>
						<ul class="dropdown-menu pull-right" role="menu">
							{loop $menu[$menu_tid]['left'][$menu_pid]['link'] $t}
							<li>
								<a href="{if $t.url}{$t.url}{else}{dr_member_url($t.uri)}{/if}" {if $t.target}target="_blank"{/if}>
									<i class="{$t.icon}"></i> {$t.name}</a>
							</li>
							{/loop}
						</ul>
					</div>
				</div>
				{/if}
			</div>
			{/if}

